﻿using MusicExplorer.Model;
using MusicExplorer.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MusicExplorer.Common
{
    public class NavigationObject
    {
        public RootViewModel Root { get; set; }
        public PageViewModelBase SourcePage { get; set; }
    }

    public class RepositoryPageNavigationObject : NavigationObject
    {
        public Model.Repository Repository { get; set; }
    }

    public class TracksPageNavigationObject : NavigationObject
    {
        public QueryGroup Group { get; set; }
    }

    public class GroupEditionNavigationObject : NavigationObject
    {
        public QueryGroup Group { get; set; }
    }

    public class ErrorPageNavigationObject : NavigationObject
    {
        public NavigationObject OldNavigationObject { get; set; }
        public Type OldPageType { get; set; }
    }
}
